package com.translate.web.param;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.translate.web.constant.ValidateCondtionAndMessage;
import com.translate.web.param.contract.ILoginParamBySms;

public class LoginParamBySms implements ILoginParamBySms {

	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.PHONE_BY_PATTERN, message = ValidateCondtionAndMessage.PHONE_BY_PATTERN_MSG)
	private String mobile;
	
	@NotNull
	@Pattern(regexp = ValidateCondtionAndMessage.NUMBER, message = ValidateCondtionAndMessage.NUMBER_MSG)
	private String code;


	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
}
